package org.feng.framework;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.feng.callback.AsyncCallback;
import org.feng.enums.SmsType;
import org.springframework.stereotype.Component;

/**
 * @author feng
 */
@Component
@Slf4j
public class SmsCallback implements AsyncCallback {
    @Override
    public void callback(Object o, SmsType smsType) {
        log.info("自己");
        log.info("短信返回内容：\n{}", JSON.toJSONString(o));
        log.info("短信类型：{}", smsType);
    }
}
